package com.hznu.jspFinal.dao;

import com.hznu.jspFinal.entity.Class;

import java.util.List;

/**
 * @author jamesZhan
 */
public interface ClassMapper {
    Class selectByPrimaryKey(Integer id);

    Class selectByClassName(String name);

    void deleteByPrimaryKey(Integer id);

    void insert(Class clazz);

    void insertSelective(Class clazz);

    void updateByPrimaryKeySelective(Class clazz);

    void updateByPrimaryKey(Class clazz);

    List<Class> selectByMajorId(Integer majorid);

}
